package com.myspringmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/cookieValue")
public class CookieValueController {

    @RequestMapping("cookie")
    public String getCookie(@CookieValue("JSESSIONID") String cookieStr){
        System.out.println("cookieStr : "+cookieStr);
        return "success";
    }
}
